package com.xjrsoft.module.customerTwo.EMP.checkin_log.vo;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import com.xjrsoft.common.Enum.TransDataType;
import com.xjrsoft.common.annotation.DataTrans;
import io.swagger.annotations.ApiModel;

/**
 * 视图实体类
 *
 * @author lisen
 * @since 2023-07-21
 */
@Data
@ApiModel(value = "列表TElectricCheckinLogVo对象", description = "列表TElectricCheckinLogVo对象")
public class TElectricCheckinLogListVo {

    @JsonProperty("room_id")
    private String roomId;

    @JsonProperty("fid")
    private String fid;

    @JsonProperty("identify_name")
    private String identifyName;

    @JsonProperty("identify_id")
    private String identifyId;

    @JsonProperty("division")
    private String division;

    @JsonProperty("department")
    @DataTrans(dataType = TransDataType.DEPARTMENT, multi = false)
    private String department;

    @JsonProperty("phone_number")
    private String phoneNumber;

    @JsonProperty("checkin_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime checkinDate;

    @JsonProperty("is_couple_room")
    //@DataTrans(dataType = TransDataType.DATA_ITEM, dataCode = "YesOrNo", multi = false)
    private Integer isCoupleRoom;

    @JsonProperty("room_number")
    private String roomNumber;

    @JsonProperty("is_checkout")
    //@DataTrans(dataType = TransDataType.DATA_ITEM, dataCode = "YesOrNo", multi = false)
    private Integer isCheckout;

    @JsonProperty("checkout_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime checkoutDate;

    @JsonProperty("islocked")
    private Integer islocked;

    @JsonProperty("workshop")
    private String workshop;

    @JsonProperty("gender")
    @DataTrans(dataType = TransDataType.GENDER, multi = false)
    private String gender;

    /**
     * 是否归还钥匙
     */
    @JsonProperty("iskeyreturned")
    private Integer isKeyReturned;
    /**
     * 是否是最后一人（退宿）
     */
    @JsonProperty("islastone")
    private Integer isLastOne;

    @JsonProperty("item")
    private String item;
}
